import React from 'react';
import { BrowserRouter as Router, Route, Redirect, } from 'react-router-dom'

import { Main } from './pages/Main'
import { City } from './pages/Sub/CItyList'


import 'antd-mobile/dist/antd-mobile.css';


function App() {
  return (
    <Router>
      <div className="App">
        <Route path="/" exact render={() => <Redirect to="/main" />} />
        <Route path="/main" component={Main} />
        <Route path="/city" component={City} />
      </div>
    </Router>

  );
}

export default App;
